package com.laicunba.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.laicunba.pojo.vo.InviteGroupVO;
import com.laicunba.service.InviteGroupService;

@Service
public class InviteGroupServiceImpl extends BaseServiceImpl implements InviteGroupService {

	@Override
	public List<InviteGroupVO> findInviteGroupVOListByHeader(String headerId) {
		return queryDao.selectList("INVITE_GROUP.findInviteGroupVOListByHeader", headerId);
	}
	
	@Override
	public InviteGroupVO findInviteGroupVOByMember(String memberId) {
		return queryDao.selectOne("INVITE_GROUP.findInviteGroupVOByMember", memberId);
	}
	
	public int countInviteGroupMember(String headerId) {
		return queryDao.selectOne("INVITE_GROUP.countInviteGroupVOMember", headerId);
	}
	
	public List<InviteGroupVO> findRankingList() {
		return queryDao.selectList("INVITE_GROUP.findRankingList", null);
	}

}
